<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/trymore" prefix="tm"%>

<style>
	.noborder {border-left: none; border-right: none; border-top: none;}
</style>

<script type="text/javascript">
	function item_refresh () {
		$("#datagrid_dict_item").loadUrl("app/system/menu.do?action=actionLoadMenuFuncList", {}, function(){
			if ($("#_var_dictype", $(navTab.getCurrentPanel())).size() > 0) {
				$("#_var_dictype", $(navTab.getCurrentPanel())).remove();
			}
		});
	}
	
	function callback_dictRemove(id) {
		if (id == undefined && $("tr.selected", "#datagrid_dict_item").size() > 0) {
			id = $("tr.selected", "#datagrid_dict_item").attr("rel");
		}
		if ($("#dict-" + id).size() > 0) {
			$("#dict-" + id).fadeOut("slow");
		}
	}
</script>

<div class="pageContent bor" style="float:left; width: 240px;">
	<div class="toggleCollapse noborder"><h2>数据字典类型</h2></div>
	<div>
		<ul class="tree treeFolder" layoutH="8">
			<li class="expand">
				<a id="org_master">项目数据</a>
				<ul>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_PRO_INDUSTRY" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_PRO_INDUSTRY" callback="" target="ajax" rel="datagrid_dict_item">项目行业</a></li>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_PRO_PARTNER" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_PRO_PARTNER" callback="" target="ajax" rel="datagrid_dict_item">项目合作方</a></li>
				</ul>
			</li>
			<li class="expand">
				<a id="org_master">工作日志</a>
				<ul>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_WORKLOG_TYPE" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_WORKLOG_TYPE" callback="" target="ajax" rel="datagrid_dict_item">工作类别</a></li>
				</ul>
			</li>
			<li class="expand">
				<a id="org_master">个人资料</a>
				<ul>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_PROFILE_DEPT" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_PROFILE_DEPT" callback="" target="ajax" rel="datagrid_dict_item">部门</a></li>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_PROFILE_DUTY" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_PROFILE_DUTY" callback="" target="ajax" rel="datagrid_dict_item">职务</a></li>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_PROFILE_EDU" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_PROFILE_EDU" callback="" target="ajax" rel="datagrid_dict_item">学历</a></li>
				</ul>
			</li>
			<%--
			<li class="expand">
				<a id="org_master">名片夹</a>
				<ul>
					<li><a id="" class='tparam' param="_var_dictype" paramRel="DICT_CARD_INDUSTRY" 
						href="app/system/dict.do?action=actionLoadDictDataGrid&type=DICT_CARD_INDUSTRY" callback="" target="ajax" rel="datagrid_dict_item">行业</a></li>
				</ul>
			</li>
			 --%>
		</ul>
	</div>
</div>

<div class="pageContent bol" style="margin-left: 250px;">
	<div class="toggleCollapse noborder"><h2>数据列表</h2></div>
	<div class="panelBar">
		<ul class="toolBar">
			<li>
				<a class="add" href="app/system/dict.do?action=dialogDictPage&type={_var_dictype}" warn="请从左侧选择数据字典项!" 
					target="dialog" title="添加数据" width="540" height="240" rel="dia_dict_add">
					<span>添加数据</span>
				</a>
			</li>
		</ul>
	</div>
	<div id="datagrid_dict_item"></div>
</div>
